########### next target ###############

set(sportwatcher_SRCS
    coordinateswidget.cpp
    disassemble.cpp
    import.cpp
    main.cpp
    managefile.cpp
    progresswidget.cpp
    render.cpp
    settingswidget.cpp
    shapewidget.cpp
    sportwatcher.cpp
    sportwatcherwidget.cpp
    transform.cpp
    wmsbase.cpp
    wmscapabilitieswidget.cpp
    wmsselectorwidget.cpp)

set(sportwatcher_UI
    authenticationdialog.ui
    coordinateswidgetbase.ui
    progresswidgetbase.ui
    settingswidgetbase.ui
    shapewidgetbase.ui
    sportwatcherwidgetbase.ui
    wmscapabilitieswidgetbase.ui
    wmswidgetbase.ui
    wmsselectorwidgetbase.ui)

add_definitions(-fvisibility=default -pedantic -fexceptions -Wextra -D_REENTRANT)

kde4_add_ui_files(sportwatcher_SRCS ${sportwatcher_UI})
kde4_add_app_icon(sportwatcher_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../src/hi*-app-sportwatcher.png")
kde4_add_executable(sportwatcher ${sportwatcher_SRCS})

target_link_libraries(sportwatcher
	${KDE4_KDEUI_LIBS}
	${KDE4_KIO_LIBS}
	${KDE4_KDE3SUPPORT_LIBS}
	${GDAL_LIBRARY}
	${LIBUSB_LIBRARY}
        ${FREETYPE_LIBRARIES}
        ${MAPNIK_LIBRARIES}
        garmin
        gant )

kde4_install_icons(${ICON_INSTALL_DIR} )

install(TARGETS sportwatcher ${INSTALL_TARGETS_DEFAULT_ARGS} )
install(FILES sportwatcherui.rc DESTINATION ${DATA_INSTALL_DIR}/sportwatcher)

